﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problema2
{
    abstract class Computer
    {
        protected AbstractFactoryComputerPart factory;
        protected ConcreteComputerPartCPU cpu;
        protected ConcreteComputerPartRAM ram;
        protected ConcreteComputerPartMonitor monitor;

        public ConcreteComputerPartCPU CPU { get { return cpu; } set { cpu = CPU; } }
        public ConcreteComputerPartRAM RAM { get { return ram; } set { ram = RAM; } }
        public ConcreteComputerPartMonitor Monitor { get { return monitor; } set { monitor = Monitor; } }

        protected string tip;
        public string TIP { get { return tip; } set { tip = TIP; } }

        public override string  ToString()
{
    string text = "Tip : " + cpu.Tip + "\tMemorie RAM: " + RAM.Tip + "\tMonitor: " + Monitor.Inch;
    return text;
}

    }
}
